package com.example.testapplication.util;

import com.bumptech.glide.request.RequestOptions;
import com.example.testapplication.R;
// 图片加载工具类
public class GlideOptionsUtils {
    public static RequestOptions baseOptions(){
        return new RequestOptions()
                .placeholder(R.mipmap.loading)
                .error(R.mipmap.loader_error);

    }
    public static RequestOptions circleCropOptions(){
        return baseOptions().circleCrop();
    }
}
